Added rails_best_practices metrics gem and brakeman security scanner.
Removed trailing whitespace.
Enhanced validation regexps (brakeman's suggestion).