refactor connections to allow swapping.
use apache regex.
Merge branch 'master' of https://github.com/dphunct/scribe-java