lua: now that brew core carries 5.2.x, move 5.1.x to versions

This is the most recent lua.rb (prior to 5.2.x upgrade) from
homebrew core, with the filename and classname changed.

It supports parallel installation with core lua.rb among others.