Feature/97 custom config nginx rebased

Another go at #97 . Rebased on master.

It replaces the PR at #142. It includes all the commits there, squashed into one.
It includes the fixes in PR #147.
It has an addition to the CHANGELOG and bumps the version.