lots of tweaks; added example based on ember-cli