lua: add lua 5.1.5 tarball

Moved each Makefile to Makefile.lua.orig to avoid naming conflicts.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: adds bufferlist and msgpack libraries

Adds basic Lua wrappers around ceph::bufferlist, the cmsgpack Lua
library, and builds Lua as a noinst shared library.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
cls_lua: add Lua object class

Adds cls_lua and associated tests. Supports many of the cls_cxx_*
functions. See test/cls_lua/ for examples.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: support cls_cxx_write and bufferlist::length

Signed-off-by: Adam Manzanares <nmtadam@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
lua: use __len metamethod for bufferlist::length

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: support bufferlist < and <= operators

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: support bufferlist concatenation

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: trivial formatting fix

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: support cls_cxx_[gs]etxattr

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: support cls_cxx_map_clear

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: provide cls_lua_client library

Provides an interface that doesn't depend on Ceph encoding for users
outside of the Ceph source tree.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
test: use cls_lua client library for unit tests

...rather than using Ceph encoding directrly.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
lua: don't decode reply on error

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
cls_lua: don't assume method output

In the previous version of cls_lua method output was always returned.
This has changed, and now the output won't be returned in some cases
such as a successful write.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>