Removed global functions and added static validation markup

- Removed JS from templates and moved code to the view
- Added JSHint config to the file header

. #94
Merge branch 'feature/frontend' of github.com:akvo/akvo-flow into feature/frontend