Rails 4.0 upgrade - fixed device_controller cucumber errors

Fixes for following failing cucumber tests:
cucumber -p browser capybara_features/black_listing_devices.feature:4 # Scenario: Should able to blacklist a device
cucumber -p browser capybara_features/manage_users.feature:12 # Scenario: Admin disables a user and re-enables a user from the edit page
cucumber -p browser capybara_features/user_disable.feature:11 # Scenario: Admin disables a user and re-enables a user from the edit page


In devices_controller, Device.view() is deprecated.  Changed to Device.by_imew
Changed devices_controller_spec mocks to account for this change.
Fixes failing cucumber tests regarding blacklisting devices.

In users show page, fixed a case where true/false is now handled as a boolean instead of as a string.
This fixes failing cucumber tests regarding disable/enable users