Add option to install Nginx from nginx.org repo.

Also added MARIADB_REPO option and restructured setup_apt function.