Add API client

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotal.io>
Remove some internal logic from API package

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotal.io>