Some improvements, loading it via MW stack, some code refactoring, adding mustache
removing not needed global JS
Merge Hakubo changes