DRY up random key generation

Make random key generation the responsibility of RandomKey module
Remove that responsibility from ActiveRecord classes