Merge pull request #29 from YfLn/Richard

Updated "email adress" field in edit profile
Fixed bugs with edit profile redirection

The edit profile page no longer saves data to the DOM model if a user
clicks the cancel button or redirects to a different page manually.
Added test for redirecting back to view profile

This test will make sure that the location after the redirect method has
been called is view profile. Had to inject service $timeout into test
code in order to be able to test the delay.
Remove unnecessary method

Got testing to work without it.
Merge pull request #30 from YfLn/master

Updating Richard branch from master