Merge pull request #36 from kraman/ssh

Fix gear creation under SELinux.
Allow environment to be set on create

Make GearBasePath configurable
Merge pull request #37 from smarterclayton/allow_env_on_create

Allow environment to be set on create
Stop logs cause panic due to write after close
Merge pull request #38 from smarterclayton/stop_panics_on_logging

Stop logs cause panic due to write after close