[Server] Remove debug code.
[Backend] Replace promise.js with q.js
[Server|Backend] Add basic api communication function.