use flash for alerts and notices
added functional tests for offers controller

fixed bugs arising from running the tests
added unit tests for sp_api lib
make pretty pretty
bug fix: not all fields are required
updated README