add /api handler
remove undeclared var usage
add repo into package.json
Upgrade to 0.3.22 (add simple rest-api)