Fix NetworkSet binding
Added AppController and moved controller code to it.
Minor cleanup.