Refactor StateRegistry

required for #22
- needed to re-factor StateRegistry to remove dependency on the game
object until its actually needed.
- my removing dependency, we can now check if a game is saved in local
storage
remove duplication
re-factor app to no longer need game

realized a bunch of tests where not properly stubbing the mediator...
Storage Module
implement storage into app

broken test... appSpec needs cleanup
fix editorconfig
remove singleton, replace with objects. better DI

Realized Singletons don’t work well when trying to re-create objects.
Instead when creating the game, the game will pass the references into
the appropriate classes.
remove dependencies to allow JSON stringify
pass board data correctly to classes
storing topCard, $showTopCard, $cribOwner

wasn’t properly loading these values.
jshint
wasn't instantiating a new deck
save game refactor

- move to mediated event, save game after render.
- some states need additional code to prevent init from replaying events
(crib, discarding 2; count, re-counting [todo[)
[WIP] fixing countState on reload

need to account for reloading and a countState is set
refactor countState

countState now can be initialized with varying count step (based on
loading game from saved state)
rename Mediator to PubSub

since that’s what it really is… Need to work on creating a mediator
class that handles what the app is doing now.
move logic to Mediator class

TODO: Install PubSub from Mediator to Player and BaseScoreKeeper.
TODO: Move tests from appSpec to MediatorSpec.
remove ref to localStorage
need to init stateRegistry. fix PubSub reference
MediatorSpec