Add a separate `compileClient` method and remove `client` option

[closes #1296][closes #1297]