CreateResource added + tests + app.js cleaned up.