Close Role endpoint issues and bump API to 0.4

Many changes outlined in the commit message for ba46776.

This was all precipitated by the fact that several of the sample responses were returning invalid JSON, which Postman caught (refused to pretty-print it). Recommend that you run major changes in the sample responses by http://jsonlint.com in the future.