Lua libraries

part of https://github.com/opentechinstitute/luci-commotion-apps/pull/21