Return 'path' property for query results

This allows the hierarchical relationships between returned
views to be re-constructed on the Ruby side. Also change the
View mapping to happen on the main thread.