internal/...: create new structure for api
sortimports
add charmstore server tests
Merge pull request #16 from rogpeppe/004-restructure-2

internal/...: create new structure for api