Move networkModel to it's own file.

The networkModel for the tree view is pretty complex so it deserved
it's own file.  A lot of work was done on this file as well.
Add statistics and counters to the simulate adapter.