Merge pull request #67 from reaperhulk/api-refactor

API refactor to separate cffi declarations