Fixed whitespace.
Properly handle hook execution errors.
Don't reconnect immediately, enter STATE_REINIT.

This could cause high CPU usage due to useless spinning as the
resolution step completed immediately and the connect call
was retried (and failed) over and over. By entering STATE_REINIT
instead, the reinit timer is now honored.
Reduce reinit timer duration.
Skip empty payloads instead of crashing.
Also ignore errno 97.
Prepend NAT rules to avoid override by firewall.
Adding check for installed modules.
Merge pull request #11 from sudomesh/maxb/module-check

Adding check for installed modules.