Refactored peer to be more testable and added a bunch of tests
Event handlers can now pass a this pointer
Added unit test for the LocalStorageLink