Add missing core API classes.

Adds some missing core API classes which caused segfaults and other
nasty stuff.
Merge pull request #30 from peelonet/missing-api-classes

Add missing core API classes.