Initial test and REST client framework

This PR contains a rough outline of:
 * the test framework
 * the REST client framework
 * linting
I've added some more explicit documentation about the `profile` and `client` keys