Travis support for PRs and master, stable5 and stable6

Continuation of #8913
To be specific

1. prepare stuff around config.php 
2. DB-stuff (write the config.php for the DBMS)
3. bootstrap ownCloud instance