Many smaller changes:

- arctic template fix
- navigation useheading fix
- unittests for recognizing a bunch of syntax options
- not recognize maxjs as js option
- code refactoring, formatting and phpdocs
- make contextmenu strings translatable. Fixes #98 and fixes #64