adding errwrap unit tests, adding JsonSortedMarshal and using it everywhere
adding authapi binary to .gitignore
gofmt code