acardona/CATMAID — pull request #367 by OliverUv (2012-07-01 00:58:20+00:00)
Title: Replace link.create.php, add transaction decorator, applied decorator where appropriate

Some lines of code could be made shorter by raising RollbackAndReport exception, but where rollback wasn't necessary (all replacements) I didn't want to make it seem like it was.

I've still applied the decorator to functions that throw Http404 exceptions, so that these are now transformed into HTTP 200 responses with {'error': the-404-message} json bodies.