Put plugin into class. Created Singleton instantiation. Updated code to meet WordPress Coding Standards. Broke a few things along the way.