Moved graph data model code into a model submodule.
Created a layouts submodule and moved John's FD-layout code into it.

This is where anything that has to do with layout algorithms should go
starting now.
Added a jaavadoc style header comment. Clean up the JS a bit.