Split API into 2 go packages

ping @crosbymichael @creack @unclejack