- refactor init-script structure for separation of concerns and clean fu...

- refactor init script to have a separation of concerns and clean functions
- use lsb conform exit_codes