upgrade demo to rails 4.0.1
minor fixes
changes to demo project