removing dead code
splitting types/reactor.go and types/types.go into smaller files; adding cast handling for errors in responses from a security proto