removed call to locals
Revert "removed call to locals"

This reverts commit eca9499d2fc1afd1ec99b255e6c0a1f5aa0c890c.
Removed locals modules and app.js
Fix various bugs for v0.2

Fixes #9
Fixes #4
Fixes #3
Fixes #2