MAM and PgSQL

https://github.com/esl/ejabberd_tests/pull/36 contains updated tests.
This PR contains changes for hand-made partitioning (it disabled by default).
Schema from mysql.sql is enough for testing. Other SQL files are used in special cases.
Config file format was changed for MAM modules.