Moved common rpc code to helper class
rename
Used Task-continuation monad for whole pipe line in the rpc-server. Then all errors (including unexpected ones) will be propagated to outer handler