Revert "put all the api under transaction management (bug 849080)"

This reverts commit e6d7ac538a91bfe7ee134ff1e065f2075e94141c.