added spring support and some rspec changes