Scripts re-org before upgrading to Bootstrap 3.0

Removed templates folder since module and widget templates are now with
their def js;
Putting main, env, i18n, template-builder and base-lib-fix into
infrustructure folder;