Replace awesome_nested_set gem with a custom implementation of nested sets
This issue functions as a placeholder to make sure this change gets included on the changelog.
The (functionality of the)
awesome_nested_set gem, that is used for building trees of projects and issues, is replaced with a simple and more robust custom implementation of nested sets. This fixes several dead locks and/or nested set inconsistencies.