updated to bottle plugin API v2

your patch include both 2.6+ `as style` and `comma style`, please fix them.

I think `comma style` would be better because it might work with all 2.x version