Added check if stored value is a number to spyOn, since localStorage will store integers as strings.
Configured the service to a provider type for more configurability.
Merge pull request #50 from mwq27/master

Added check if stored value is a number to spyOn, since localStorage wil...