Make SQAPI object be global per module.

So functions in separate source files can call API.

TODO: Rename underlying var name?
Start module helper library.

Provides convenience API for writing modules.
Refactor to use sqmodule_helper.h helper functions.