Split out event handling from label alteration

Split out event handling from label alteration to allow a CLI script and
a web interface to reuse the same JIRA glue.
Add *.pyc to .gitignore