Rails 4 Updates

Somehow the "last_audit" and "pending_audit" lambdas seem to be working fine now. So reverted bits of code to use those associations again. Updated State.rb to remove deprecated use of :uniq => true. Now it uses a lambda.

Updated stores_controller.rb to replace find(:all) references with .all.where whenever possible. Lots more of those references will need to be updated. Only updated such references in the "new" and "update" actions so far.