Class with settings screen

I'm not quite sure if this is going to make it into the main plugin but figured it's a good way to share it in case someone else wants to use this.

This pull request would provide a Class based plugin with a settings screen that can be easily extended and could be a good basis for creating your own plugins in a relatively safe and extendable fashion.