Merge pull request #23 from policecar/master

fixes algorithm for computing squared (Euclidean) distance.
we have an inverted y axis due to the canvas
if compact, expand node on hover

this will expand compact nodes to their full view on mouse over
prevent monitors from unselecting themselves
monitors: scale y-axis for positive activation
autoscale y-axis also for negative activation vals
Merge pull request #25 from Doik/monitors

Fixing TOL-16, TOL-17
Do not attempt to snapshot sensors when not connected
to a world
Merge branch 'master' of github.com:joschabach/micropsi2
fix overlay scaling
Merge pull request #24 from Doik/hovering

if compact, expand node on hover
fix position of new nodes in Firefox
Merge remote-tracking branch 'joscha/master'
fix node-hover-overlay
... fix hover overlay part 2
wording consistency
change node context menu sorting

(create after draw)
don't redraw Node if deleted in between
fix deleting nodespaces
sort nodetypes in context menu alphabetically