Improve installer

Make sure that we test all the use-id's, passwords, hosts, etc. and allow
for corrections. Only if all is checked write database.php
Change is_writeable with _is_writable