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>
Merge remote-tracking branch 'origin/uirouter-states' into merge

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>

Conflicts:
	app/index.html
	app/js/controllers/base.js
	app/partials/examples.html
	bower.json
	dist/index.html
getId function missing

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>
fixed missing getId.

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>