api: Implement '--embedded-mode' command-line option

This option makes nvim run in "embedded mode", which creates an API channel via
stdin/stdout and disables all terminal-related code
test: Run tests in embedded mode on travis
Temporarily switch python-client branches