Foundation source and demo. Needs proofing, link checks, doc checks, etc. Not yet ready for release.

Signed-off-by: Tory Hoke <tory@sub-q.com>
Revamped comments and parameters. Potentially broken state -- have not tested thoroughly

Signed-off-by: Tory Hoke <tory@sub-q.com>