Use promises for every API call
Routing implementation with whitelisted routes
Use crypto as a global reference for the User resource
New API structure