[*] fix a bug with parsing root cert payload (it was plain DER, not DER in Base64)
[+] added rwlock support to router context
[~] api was slightly refactored (it's still establishing)