I'm not sure if this is right place but. Have you (Kotlin team) guys considered the RPC feature? I mean the ability for a client to call server api's as easy as it is to call a local functions. Like this library does
https://github.com/lihaoyi/autowire .