Import initial copy of code from svn.

This code was copied from the releases/prod tree of svn.