appnet.js

Code refactoring for appnet.js complete.