Implement CONFINE REST API filtering (#403)
Improve error message and doc strings.
Merge branch 'bug403'