Changes to page initialization

Each page calls ndexUI.initPage, any on-load behavior should take place
in the callback of that function. Also added functionality to check
size of network prior to 2D visualization