support protocol v0.2.1

Recently I made some works about to support protocol v0.2.1 based on your iOS client with latest server source