Update file_history.py

Updating code to work with SublimeText3 (and therefore Python3).  Code is backwards compatible with SublimeText2 (Python 2.6).  Also updated the code to stop using globals by using a singleton pattern in the FileHistory class.