Move environment to the siad package
This ended up going a bit less when than originally planned, but overall I think it's the right thing. Added some type safety, created some new files for doing things, paved the way for moving TCPServer to package siad.
Most notably, I did not fix most of the race condition stuff. That's next on the checklist.