Improve assertions and rack/test extensions. Add capybara extension