Fix Ivy based build.
Add support for querying for "pending" instructions, not just queued ones.
Add /viewPending endpoint for instructions.