fixed pid file handling; move pid declaration to init script
remove failed attempt at cutting code -sigh
support for shared libraries and jdbc