merge 4.0 branch
rails 3 friendly
Fix predicate builder in rails4 to handle 'not' in a way AR accepts
Fix specs