Page restrictions and initial sessions implementation for login / logout...

... functionality (1453)

- authentication now required for access to /app
- validation messages modified for signup and login
- fixed jshint warnings for ; and ' in some files
- layout file split into 2 - header and footer for inclusions in other view files
- email validation implemented at the server