Merge pull request #380 from MDCox/programmaticStyles

Styles and Data hooked up
changing 'r' to 'radius' in nodeStyles to match convention
torching alchemy.updateGraph and refactoring alchemy.startGraph
API to return properties + initial working implementation of node.setStyle method
refactoring edges to store id as source-target and position as position in the array of created edges
refactored startGraph method + create methods + setStyle methods
general cleanup + cleaning up Node construction
cleanup + setProperties() working on node and edges
fix dragging + _adjacentEdges
Node styling for node_types
Edge styling for edge_types
Merge pull request #381 from hustonhedinger/styleMethods

Style methods
Uniform code styling

This commit connects what Huston did on hustonhedinger/styleMethods and
what I did on MDCox/programmaticStyles .  After that, files were
modified to have a uniform code style consisting of 'is' instead of
'==', 'or' instead of '||' except where there are multi-column chains,
and no parentheses in the outermost function call of a line.  This was
necessary so that when we have a new person come in to the codebase,
they don't have to deal with tons of different ways of doing things when
they essentially come down to synctactic sugar.

drawNodes, drawNode, drawEdge, and drawEdges were refactored into
functions containing closures because the instances we were using did
not require persistent state.  This cuts down on memory, and a
significant amount of CPU which makes the graphs load way faster.  It
also creates a distinct seperation from the models where the data and
instance logic is stored.

I admit this should have been broken out into about 3 commits, but I got
a bit carried away.

To my knowledge everything works.  Hallelujah.

----

Merge branch 'release-0.3' of https://github.com/GraphAlchemist/Alchemy into programmaticStyles

Conflicts:
	app/scripts/alchemy/drawing/drawNode.coffee
	app/scripts/alchemy/models/node.coffee
Update clustering for new variable structure
Remove self-referential node-fill
Hover fixed again
Filter rollover highlights
Initial programmatic filtering
Refactor node filter
Styling based entirely on state