Greatly improve documentation.

Remove GetEnv() because it was too unreliable.
Consolidate platform agnostic functions together in a single file for better organization.
Rename test directory so it is not included in the documentation.
add initial readme from godoc
go fmt