add $safeApply that checkes $$phase and revert spinEdit $timeout
Merge remote-tracking branch 'origin/master'