PrivateAppValve + use Tomcat JDBC Pool + Tomcat 7.0.42 + Refactor for testability

* Upgrade Tomcat to 7.0.42
* Introduce PrivateAppValve
* Migrate default DataSource impl to Tomcat JDBC Pool with default settings
* Refactoring for testability
* Add many unit tests