added resolrize, resque-pool restart, passenger warmup and some refactoring