adding htaccess for error reporting, libs folder to hold db and config details, making more models and factory for user.