Feature/move new api to v2

Handle API versioning #109 

- Code to provide the v2 API and support for legacy v1
- Tests for for both v1 and v2