New functions to hold commonly used code mostly for removing and unlinking stuff. Most notable change was revisited exception handling. Now POST has a rollback functionality which will cancel all the changes in the request if one of the posted items generates an error. This *should* work but should be tested more throughly.

Next part is to formalize the error codes and create formalized success codes & related stuff.