Version 0.4.0

Major module rewrite. The source code is in `/lib`. Automatically builds API from JSON schema `/lib/schema.js` and uses proxy objects to implement the API. Implemented promises using `q` module. New test cases in `/test`. Automatically generates documentation from the schema using `/bin/docs` and the detailed documentation is placed in `/docs`. Resolves #6 and #13.