Created devices controller with index action.