Add lib/saphana.js with initial code