Enhancements for unit testing

- Adds script to set up an Apache server on Travis (based on https://github.com/jubianchi/travisci-helper) and enable Http tests
- Adds tests for HttpFactory