[ndproj] Adds a class that rewrites .ndproj files

So that we can replace the <rules> element with rules generated
from the rules.xml file.
For the moment, this class doesn't do the real replacement, I'll
add this in subsequent reviews.

Change-Id: I6d23c3c1a01db955e5f34156942b490e4a25f9e4