start migrating demo code into library
start migrating demo code into library

This captures the general approach to documenting the functionality via
JSDoc as well.

OpenBEL/belhop,OpenBEL/belhop,OpenBEL/belhop