config: rename database to persistence
add redis and resque-php for job management
clarify exception messages in factories
various mail changes
add job service
fix type hint