Add commit_on_success kwarg to managed()

This removes the `commit_on_success` context manager stub and adds its funcionality to `managed` as a kwarg.