OSX Build

Linux integration tests also work on OSX (tested on 10.9.2). Also: parameterized Postgresql version and added IntelliJ exclusions.