Reformat routes.rb
Setup subdomain and namespace for API

-routes may need adjustment
Replace jbuilder with active_model_serializers gem
Add Tests for authenticating via the API

-Also added a helpers for making calls to the API
-NOTE: must add api.smartfridge.com to /etc/hosts for API to work on
development server and tests
Update tests to use subdomain
-Add outline of access controller
-Update routes for signup
-Needs to respond to and render json
Create outline of access controller
-Move the unused api_helpers
Add RABL gem to help build JSON for API
Add tests for /access api endpoint

- tests for both valid and invalid credentials
Configure application controller for POST API calls

- changes csrf settings to allow post calls for the API
 Implement Sign-in API

Endpoint: POST api.<domain>/access

// Request
{
	"email": "user@email.com",
	"password": "password123"
}

// Response
{
  "success": 1,
  "user": [{
    "uid": 1,
    "email": "user@email.com",
    "name": "sample user"
  }]
}
Update API sign-in tests

-Change before :all to :each
-Added tests for content of user array
Cleanup routes and remove unused helper
change hostname for API login spec
Add tests for Register API
Update routes for register endpoint

-create API Users resource
- match access/new to API create user endpoint
Remove signup action from access controller
Implement Register API functionality

-Create API UsersController
- Create user, if successful:
-- return {success: 1}
Merge branch 'signup-api'
Remove API subdomain

-- Use Namespace instead
Merge branch 'master' into testing-db-2