Add message history and test
Merge pull request #5 from ClearBlade/feature-add-message-history

Add message history and test
fixed memory leak when trying to reconnect to broker
auto reconnect working again, and on reconnect will resub to prev topics now
message client now prevents duplicate subs to a topic