Added api namespace and users_controller.rb for api