Big refactor to most code - introducing Autoloader and namespaces for all classes.