Refactor aegisub_example into a lua module.
Clean up Aegisub example module.