Squashed commit of the following:

commit f553352e2cf99f3b76b78b7876315cb3459402b9
Author: Matt Jibson <matt.jibson@gmail.com>
Date:   Mon Dec 9 20:16:50 2013 -0500

    Finalize namespace tests and API

commit 7a39dd347c3dec726ef078727041d4cbf0ab2dc7
Author: Matt Jibson <matt.jibson@gmail.com>
Date:   Mon Dec 9 20:05:24 2013 -0500

    Namespace querying