Plugins

Added a very basic plugin system so people can add their own commands and filters without modifying the source. The ability to have debug logging for plugins, and the plugin-samples folder can be removed before official merge, they're just there to demonstrate the system.

Let me know if you'd like to use these additions but there are changes you'd want me to make before you merge.