Fix bugs and warnings with app.
Update gem versions.