make it rails 4 compatible 

several fixes for making it compatible with rails 4 and rails 3.2.x :

1. fix the deprecated warning when select_all is called.
2. add select_values method
3. let select_value and select_one take one more arguments.