Added a pid_file config option

This will make it write the pid to the configured file.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>