Application specific input data filtering

The Model library class now allows for application specific data
filtering before it reaches the database.
Application programmer needs to hook into the filter
"db_data_before_escape" and/or "db_data_after_escape" to make the
necessary changes before any database query is executed.