Revived the Lua bindings

Moved from https://github.com/mono/monodevelop/pull/699 as requested.