Make version information a function

It should simplify copyright changes in future (if any)
Make conffile and pidfile configurable values