Better error reporting when installing. Fixes issue #1347.

Also, removed unused function.

Conflicts:
	includes/functions.php
Merge branch 'bugfix-1347' of https://github.com/ozh/YOURLS into bugfix-1347