Improve customizability of planning bug lists
Better handling of bugs with multiple blocked

Place the bug added to buglist under the first bug on the list that it
blocks.
Sprint and Backlog create/update/delete fixes

* Fix Backlog->remove_from_db()
* Wrap the changes in transactions so that in case of failures, stray
  pools or things like that are not left behind