v2.0 refactor with template read me

Move events, templateIL and script loader to separate libs.