--nagios: run as a nagios plugin

With --nagios, analyze.py returns 2 (critical) for bad tls, 1 (warning) if it doesn't match the desired level, 0 (ok) if it matches.

(This is my first shot at python, it may not be the most elegant solution.)