modified framework autoloading function, simple templating & session handling