stand/lua: Consistently organize modules
We follow pretty closely the following structure of a module:
- Copyright notice
- Module requires
- Module local declarations
- Module local definitions
- Module exports
- return
Re-organize the one-offs (config/drawer) and denote the start of module
exports with a comment.