big refectorisation including:
- changed libraries structure and way they load.
- added static config class.
- changed model to static classes
- changed templates ext
- other stuff