Implement reconnect support, changed API, bump to v0.2