moved newConfSet utils to singlenode.go
started refactor
more refactoring
finished refactor, test passing
changed license to AGPL