Set-up for AJAX log-in.

- Better styling of log-in fail indicator.
- Set-up of Javascript functions for log-in (index.js).
- Included Javascript in index.jinja.

Only problem now is that my local SQL isn't properly configured so I can't test
happy path log-in.