Added transactions to component API.
Added repository API.
Fixed some issues with existing APIs.