Upgrade to rails 4.1
Make rails 4.1 actually work
Refactor the streaming code into the model
Add a "snap" action to get a single jpeg