healthcheck.pl: Replaced CGI and Getopt with own option parsing
healthcheck.pl: Replaced CGI and Getopt with own option parsing

$R:: variables are replaced by %opts hash
e.g.
$R::action now is $opts{action}
$R::output now is $opts{output}

Parsing supports leading dashes:
--output=json
-output=json
output=json
All three will become $opts{output} = 'json'

mschlenstedt/Loxberry,mschlenstedt/Loxberry,mschlenstedt/Loxberry,mschlenstedt/Loxberry,mschlenstedt/Loxberry,mschlenstedt/Loxberry