add models for connection, graph and node

i haven't tested these out. at this point it is just the rough skeleton.
i think we should be trying to use backbone.collections though.