Add predicate helper functions
Move APIv1 into a subdirectory
wip
Reorganize predicates documentation