Merge pull request #81 from openchange/kamenim/master-mysql-util-testsuite

Few fixes in mysql utility module and testsuite
testsutie: Handle command line options for openchange-testsuite tool

the aim is to have some goodies like:
--leak-report
--leak-report-full
--version
openchangedb/mysql: Avoid leaking talloc context in case of failure
openchangedb/mysql: Avoid mem leaks in message_set_properties

It used to leak a context during all successfull calls
testsuite: Initialize g_mem_ctx during test case setup
indexing/mysql: Fix memory leak in mysql_record_allocate_fmids()
testsuite/indexing: Remove not needed memory context which end up leaked after all
namedprops/mysql: Fix memory leak in next_unused_id()
namedprops/ldb: Use talloc_new() to allocate local context

It makes tracking memory leaks way easier that anonymous TALLOC_CTX
as a name in talloc_zero(NULL, TALLOC_CTX)
testsuite/namedprops/ldb: Fix the test suite not to bleed memory
test/openchangedb: use talloc_new() - much easier to track down memory leaks
test/namedprops: Use talloc_new() for local memory contexts

it is much easier for tracking memory leaks
testsuite: Update README.md with leak report info
testsuite: Allocate global memory context under autofree context

This fixes memory leak reports we get when tests are run in
unchecked mode since setup/tear down gets called once, but
every test case is still executed in separate process
test/namedprops: Don't use lpcfg_load_defaul() directly

Rather than that, explicitly load configuration using
loadparm_init() and lpcfg_load_default()
so we control memory context for loadparm structure
and its lifetime