JSLint clean up
Candidate API

- now using express resource
- updated angular resource usage
- index and create APIs added