Refactored quite a bit.
-- Switched to use a template for the init script.
-- Cleaned up the formatting a bit.
-- Cut some unneeded dependencies.