Repo template was at the wrong dir.
Added -f to git checkout

  Uncommited changes prevented git from changing to dev branch.
  Added -f to force it.
Merge pull request #58 from semirke/dev

Small fixes in deploy-dev.sh
Merge pull request #59 from dterweij/dev

At request from Semir.
Fixed exit_if_not_system_user() missing error

  needed include
Fixed db cannot connect

  also added error reporting.
Removed extra comments
Fixed no pserver error

  call_user_func_array failed on new version of php.
Fixed indents (almost)
Merge pull request #60 from semirke/dev

Fixed MySQLi support