added a main() function
this also fixes ctrl-c and stacktrace and imporved curses slightly
Merge branch 'master' of github.com:jluedke/gmstatus