Properly handle goimports, GOPATH and go settings

Fixes: #879, #880, #881 and #882 

![Fix all the things](http://www.quickmeme.com/img/04/04bb8d2a6813ab490ffaa7e01ba937ec2f99c66a799fabf5c1ebbb237a5090e9.jpg)