Start module helper library.

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

Note: name is tentative, considering adding fdopen() function and renaming
module to osstream.