Refactor lib for key-sync

* Add AES-GCM wrapper
* Remove all unnecessary code including RSA, AES-CBC