Lua >= Lua52

See [this](https://github.com/Homebrew/homebrew/pull/29236) PR for more details. The previous thread for this PR is [here](https://github.com/Homebrew/homebrew/pull/31996). I was planning to rebase but I made a fairly awful mistake mid-rebasing and things went horribly wrong, so here’s to starting fresh and hopefully not screwing everything up.

CC: @mikemcquaid @daurnimator @sdegutis @nijikon
Sorry. They were in the Lua formula before it became Lua52, but they weren't in the homebrew/versions/lua52 formula so I wasn't sure if that was a deliberate choice. If it wasn't I'll go put those back in a moment.