Implement appinterface functionality.

appinterface allows interface classes to be defined. You know, in case
some crazy person doesn't like tmux.
mcserverctl: Fix shebang.