auto-upgrade code, moved upgrade function from ajax.php to utils.php
added configuration settings + installation variables. all this need testing
missing update the doc
fix the hooks that was wrong
Merge branch 'autoupdate' into merge-update

Conflicts:
	oc-admin/ajax/ajax.php
Merge pull request #1157 from conejoninja/merge-update

Conflict fixed for pull request #1135