Install prerequisites, then build client on CentOS 6/7, Debian 8, and Ubuntu 14.04. Also build docs on all but CentOS 6.