Plugin dev lib

Don't merge yet.