Add mx lib and add .htaccess
add user auth lib and other settings