SSH gateway support

Creating this for tracking, not actually ready for merge yet.