Fixes autolayout partially

Still doesn't work for Chrome Apps and the double-click to get autolayout button working persists. Besides that, it is currently working for graphs with groups, ports and forces i/o nodes to stay in the first/last layers.