AngularJS: better detection of entrance state

This change includes update of ui-router library.

Main idea is to set initial state to 'auth'
which determines initial state for the user.

Also according to documentation in most cases
we should to use state.go instead of state.transitionTo.

Change-Id: I8c16cc787466ed06ac014cdbdffbc643eeb87b64
Reviewed-on: http://review.couchbase.org/41130
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>