docs: added $getIndex()
docs: $login now returns a promise
docs: minor cleanup