Transforms a given Hash into a conditions Array, for use with ActiveRecord find() or where() methods