Clean up code, apply angular scope deep in callback stack.