ui.router states - url handling

Added options to handle ui.router states. It's now possible to create urls without the need to use the base path /:model.

Example:

.state('model::list',{
  url: "/el/:model",
  templateUrl: "app/partials/base-list.html"
});

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>
check if the request is state based or location based

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>
Added demo code for ui.router states

The demo is available under states.html. Most part of the code is the same only the main JS files differ.

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>
Cope with case where scope doesn't create record
Give other modules chance to set up their routes before out general ones
Fixes problem using select2 for enum in a subkey
jsHint fixes and build dist
Merge branch 'uirouter-states' of https://github.com/DominicBoettger/forms-angular into ui-router

Conflicts:
	.gitignore
	app/index.html
	app/js/controllers/base.js
	app/js/forms-angular.js
	app/partials/examples.html
	bower.json
	dist/index.html
ngRoute option split out apart from routeParams
ngRoute option really split out apart from routeParams
routeParams no longer required by base.js
Tests updated to reflect recent changes and working OK
Allow fixed routes to be specified as previously
Puts the timeout back into ui-routing setup
bump version number
Add "pull request" that closes #33