changed url rewriting behaviour to be more portable
Merge branch 'master' of https://github.com/1upon0/ui

Conflicts:
	core/ui.php