A slow view query & map implementation.

An embarassingly inefficient, simplest approach that could work, that
runs a map function on every document at view query time.

Only map function is supported; no reduce yet.