Reworked for redmine 2.3, fixed a lot of bugs, improved code style, stability and performance