Emulating html5 form input required attr on Safari

Fixes #512
Fixes #513
Merge git://github.com/Graylog2/graylog2-web-interface into develop