Base implementation

I made that into its own module by the way:
https://github.com/Bacon/BaconController