started turning backend into REST api
Quick fix
API v1
Initital v2 commit
Some final cleanup
Merge branch 'master' into v2