appnet.js

Partial conversion to appnet.js.