Remove use of find_by_uid method on User model.

Not all ORM's provide this method (e.g. Mongoid 3).  Replace its use
with a simple `where(:uid => 'foo').first` that's more widely available.

cc: @jamiecobbett