WIP iterm2 support

Still work in progress. Comments welcome. :grinning: