Connection patcher: port to cpp and fix osx

note: no longer downloads nonexistent modules
note: now throws on not finding patterns
new dependency: boost.filesystem
Code style: align to template and { (one tab less)