Restructure Javascript compiled templates

New format is close to RequireJS module. Teh following differences are exist:
  - Namespace variable is created as before.
  - Function to create module is excuted immediately.

These changes should allow following improvements:
  - Completely hide all helpers from clients.
  - Include only required helpers.
  - Simplify integration of the user-customizable parts like
    custom print directives.
Merge pull request #19 from alexey-martynov/master

Refactor format of teh compiled Javascript templates.
Use new Javascript modules format