fix inconsistencies in route path handling
Merge branch 'master' into develop

Conflicts:
	src/Kernel/Application.php
fix tests to not allow mocking nonexistant methods