changed api path from "api/" to "api/v1/". Also added method registration to the API so that users can be registered right from the app