.htaccess file finally implemented
fixed resource loading
general cleanup