[AngularJS] add auth state

Change-Id: Ia83a017abf6f61488b4de2034f97db6d2527d2f8
Reviewed-on: http://review.couchbase.org/38484
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
[AngularJS] implement basic dialog directive

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