Added proper exceptions to API method calls.

Renamed schemas to endpoints
Added errors module with all exceptions in it
Added small tests for error type behaviour checking
Moved AttributeDict to util file
Fixed small indentation problem in outputted examples in docstrings
Added sphinx project