Api

Added initial routes for api/v1/XXXX
Added initial tests for api calls

After the next release, apps should start moving over to the new API. The current calls will stay but we may no guarantees that they will not change. We will however guarantee that the calls in api/v1 will continue to work and will make adapters when needed. 

Not all calls have made it into this pull request. 
Media upload & Data Set editing are next on the list.

If any mobile developers need other calls that aren't explicitly stated in the docs please let me know