port this up to lua 5.2
the rest layer doesn't need to split on '?' for the querystring as the HTTP driver does that already.
Merge branch 'master' into lua52
make this work on OmniOS, need the CPPFLAGS and to use the openlibs API
Merge branch 'master' into lua52
Merge branch 'master' into lua52
Merge branch 'master' into lua52
Merge branch 'master' into lua52
Merge branch 'master' into lua52
allow for choice of lua or not combined with the net-snmp dep
Merge branch 'lua52'
Merge in lua52 and make it a compile-time option.

--enable-lua=<no,lua52,LuaJIT>