[wip] Make WorkPackagesController use $stateParams

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Reenable ng $location service HTML5 mode

Update Router to fall back to full page load (i.e. Rails) when a route
is not matched on the client-side.

Also update Router paths/params correspondingly.

Task # 8869

Signed-off-by: Alex Coles <alex@alexbcoles.com>
[poc] Use ui-router resolves to load project/types

Note: display of work packages across projects (i.e. /work_packages)
is currently broken.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Merge branch 'dev' into feature/client-side-routing-serialize-query
Glob directories with angular components in karma conf
Rename work packages controller to work packages list controller
Move work packages list controller file
uses deletion strategy for js specs

truncation seems to cause race conditions
Move work package details controller
Resolve state params in work packages controller, minor refactorings
Reenable routes which aren’t captured by ui router states
Fix query re-initialization on wp#index
Fall back to default title when queries are deselected
Fall back to default title when queries are deselected
Use state changes to deselect queries instead of an event
Add comment concerning http provider setup
Move some query name watcher logic to query service
Explicitly reset the query id when the query is to be reset by state
Remove reset methods from query service
Merge branch 'feature/wp=controller-restructuring' of github.com:opf/openproject into feature/wp=controller-restructuring

Conflicts:
	app/assets/javascripts/angular/work_packages/controllers/work-packages-list-controller.js