RSpec tests, configuration fixes and refactoring

Features:
- Behavioral tests built on top of RSpec, Capybara and Selenium were created
- Deployment configuration and tasks were almost rewritten
- Apache Derby Embedded replaced SQLite