Rails 4.0 upgrade

couchrest_model is saving boolean fields correctly, update views to manage boolean fields.