Refactored view scope data to condition if null on thumbnail and a angular each loop to populate message thumbnails based on who the message is from.
modified foreach to rewrite the right data
Changed route URI from account settings to preferences.
Updated angularJS dependency and introduced angular UI router, UI map, and UI utils to bower
Refactored resource URL and added response into resolve function to return promise.