Start of teambuilder

It could still use some polish, both in style and code, but this is a decent starting point.