Core API

Optimus is mainly a commandeline tool but it relies on a core API that may be used from another application.