Added the "currentAction" method to the $rootScope.
Additionally made the code compatible with 1.2.0 RC2 (and higher).