Updated README and tests to show usage of new iron.io functionality

Also, removed trailing whitespaces from js in the repo.