There are now proper endpoints for this
Merge pull request #21 from humanmade/theme-plugin-endpoints

Access proper theme and plugin endpoints