complete route handling changed, some enhancements
merging changes from master to my branch
Added device mgmt api routes
Fixed indentation for dir.js file
Fixed indentation for all files
Added SP opcode in constants, fixed some redundancies in the same file
Fixed indentation for routes/login/pwd-mgmt file
DEvice defines API and service call added. Now device defines are fetched from DB before registering the device.
Fixed indentation for routes folder
Fixed indentation for routes test db.js
Merged feature-gcm into my branch
Fixed jsonutil variable name for social-auth
removed spaces in new line in routes
fixed localhost and prd issue for social callback