Put interpreter into separate API

Makes use of a grin api feature not currently in the grin release...