more flexable db connection configuration for testing.

- add new env variable TESTDBUSERNAME: db user.
- add new file: put common functions used in testing to test/testlib.ls
- add a function `get_dbcnn` to get test connection string from environment.
- add 'Run test' section in REDAME.
add testcase of auto create identiy key when post a json to a non-exist table.