Added transactions

Added transactions. Work still ongoing, as blocking for a transaction
commit freezes forever.
Added gitignore