ni_nitdoc: extracted model facilities in their own module

Signed-off-by: Stefan Lage <lagestfan@gmail.com>