Implemented localstorage and cookie fall back functionality
configured and Added unit tests to localstorage functionality  and added grunt tasks