add a strategy for applying conditions to MiqQueue

This commit accomplishes 2 things:

1. Removes sanitize_sql_for_conditions
2. Updates finder syntax to work with Rails 4

sanitize_sql_for_conditions is deprecated, so we need to stop using it.
Since we can call `where` twice, there is no need for
sanitize_sql_for_conditions.
Merge pull request #1257 from tenderlove/where_strategy

add a strategy for applying conditions to MiqQueue