Fix for issues #268 and #277

Hi

Have changed the snapshot and rollback code to include page count and also removed the exception based transaction handling in grouping to a logic based transaction handling.

Pls do review the changes and revert back in case of issues.

Thanks
Boojapathy