Behaviours GUI now shows properly all nodes and connections. Still some things dont work.
Updated to latest jquery-ui.
Fixed style so tools always appear at bottom.
Fixes to nodes to load external js properly.
Created main.ready that will register functions to call when main is ready. Signalled when really all the extra javascripts are loaded.
Fixed connect nodes. Some speedup tweaks.
Removed unnecesary console log.
Fixes to resize, to ready conditions, and to load current state.