fix up failing specs. add Sinon.

random formatting.
decouple settings object from views