Network groups

Add network groups to foundation. Woah that's a pretty big one.

Closes #66