API respects publically viewable configuration

First commit is a go fmt ./...

Next 2 are small commits in service of this feature
The one after that completes the feature, and is rather big, but the commit log message explains it

Last 4 commits are general refactors and code improvements to the existing code