structured app directories more logically...included Capsule.js for OO programming