Allow the apn_sender to run with Rails 3.2

- Fix the generator to Rails 3 style
- Add dependency to daemons