refactored authenticate function into oauth service
removed unused dependencies from this.$get
refactored parseUser into shared service
refactored isAuthenticated into shared service
refactored logout function into shared service
refactored unlink function into oauth service
added missing $q dependency to shared service
moved unlink() into oauth service
fixed tests
Merge remote-tracking branch 'origin/master'