server api creation

- routes extracted to api.js
- 1st controller created
- mocha integration for unit tests
add mocha tests in grunt tasks

mocha is launched from node_modules directory
drop express from devDependencies in package.json (already in dependencies)
cleaning code in server side code

- renaming methods and variables
- simplify path in require
Merge pull request #7 from solidcrafters/server_api_creation

Server API creation