Topic refresh

Added refresh command in cases where server hasn't set it (large net-splits?). Added testRestore and testRefresh tests. Changes to plugin.py to raise KeyError for empty topics, thus we can assert such a response in tests, this might be useful anyway as setting the topic from an empty list was previous behaviour.