Remove imap.py file. Add imap code to sources.py and destinations.py

Enable signal handler to exit gracefully on ^c