Complete rewrite of init script(s)

Base scripts on the init scripts included with Debian GNU/Linux, then take code from the already existing ones, trying to merge them into one.

These two scripts probably don't even work - I have no possibility or test environment to test them, but I'd appreciate testing and comment on if they work, and what doesn't.