Bits and pieces for the API. Am turning it more and more into an engine. 

Signed-off-by: Toby <tobyreed0@gmail.com>