added json for logins and adds, added renders and appropriate model method calls in the controllers, added api testing for testapi_controller, only stub