support for namespaced classes

Hi @naderman!

This is still pretty hacky but it seems to work; it adds support for setting the class-name to something like `Foo\Bar\Baz\QuxValidator`.