FIX: work with Ruby 1.8 and remove rack gem dependancy so it can work with Rails 2.x