Okay, generate the first configuration part.

Also add some additional error handling on plugin enable.