clean up currency
fix method value
principal API styling
PrincipalGetRequest, cleaning up logging
add utility func: getAuthContainer
refactor, linearize put principal
rework post principal
test response writer, set http status ok when write is called with no WriteHeader
use implicit status ok
fix transaction handling on put principal
Merge pull request #37 from wongak/refactor_api

Refactor api
Merge remote-tracking branch 'upstream/master' into fix_build