view cleanup

tidy up api endpoints and introduce version control
cleanup a few imports