Extract automatic upgrade function into separate package
Remove boilerplate from init.d script
Merge pull request #20 from Metaswitch/issue8

[Reviewer: Tim] Extract automatic upgrade function into separate package