Cleanup API somewhat

This is kind of a mess. Why is there even application code in the repo,
at all? Damn you past me!

Signed-off-by: Anton Lofgren <alofgren@op5.com>