Tests: Lua 5.2 and OpenLDAP server setup script

@danc86 wrote two interesting patches
1. An addendum to b785fbd7ad0b17d33bb26b9d6c1cee207117eae4, allowing the tests to be run with Lua 5.2
2. A script to setup an OpenLDAP server and run the tests against it