Add support for namespace declarations.

Change-Id: Ib4bbc2ea9b0ad7836f45200ba7fb37451a3b8896