Replace deprecated finders

Dynamic finders like `find(:first, conditions: { token: "..." })` are deprecated/removed in rails 4 and must be replaced by `where(token: "...").first` etc.