rpc, protocols: Introduce custom XDR implementation
 * rpcgen is no longer used
 * dynamic resizing of encoding buffer

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>