Add Database::beginTransaction

To use DB update transactions $GLOBALS['smwgUFeatures'] requires
the SMW_TRX_UPDATE flag.
Merge pull request #667 from SemanticMediaWiki/db-update-transaction

Add Database::beginTransaction