Automatically add associated PHP modules for database

* Add php5-mysql if MySQL is chosen
* Add php5-pgsql if PostgreSQL is chosen
Templates: Toggle automatically installed PHP packages depending on configuration