Added test for JS settings and removed unused test case
Removed unused cache (needs more specing)
Pep8 and general code tidy
Added subscribe and unsubscribe to the mock publisher
Removed unused code and tidy up
Added more tests