detecting if Json needs to be parsed or stringified as part of addToLocalStorage() and getFromLocalStorage()

...on and toJson methods to parse it.

This saves the user from having to call the stringyfyJson() and parseJson() before getting and setting to the local storage. Those functions can also be now ported over to use angular.toJson and angular.fromJson(). That change is not included in this commit.