Bootstraped the h2c.pl scrit in version 2

The script is working, but there are still some unclear parts, so I will
addcomments and reorganize the code in further commits.

If you want to try it out, read the help page first please