solved: Issue 43 configurable stages

Solves the issue 43, more features/issues could be made from this, but decided to leave it here. Instead I'll write separate issues for those. The changeset is quite huge due to making Stage database tables and DAO.