Fixed some bugs reported by tsc-develop
Removed BOM from files where it appeared
Changed build system and template namespace

This is a workaround for bug #1032
More BOM removal