Cypher profiler

This introduces a set of final fixes for the first iteration on the cypher profiler, including support for running profiling queries through the REST API.