- ported prim plugin to new architecture; needs redesigning and rethought

- added generic/custom error that makes use of 'desc' key in error extra array