various fixes

* Fix for login redirect not working with missing referrer;
* Moves messages JavaScript to static folder and fixes select all checkbox;
* Fixes 404 when clicking on tag in list preview;
* Adds licensing information;
* Fixes pybabel issue which prevented message sending;
* websubmit pybabel fix.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Merge pull request #131 from adrianp/poo

various fixes