Contents api

 - PUT `/contents/id` to update documents
 - GET `/contents/search?q=something` for searching documents in your workspace
 - GET `/users/contents` for listing all documents in your workspace
 - GET `/resources/id` to get uploaded resources (tweaked slightly and added functional tests)
 - POST `/resources` to upload a resource file (tweaked slightly and added functional tests)