added api key gen model and made some modifications to voters controller based on railscasts ep. 352