Routes and handlers for api version 1

Routes and handlers for the version 1 of the api is done.
Will proceed with refactoring of the code. And then start the UI