Add mosh support. Resolves #24.