Initial import of RSD (with some minor cleanups)

Currently only C++11-capable compilers and UNIX-like systems are
supported; the schema manager may need to be disabled to get this
all to compile on windows.