Added support for deadlocks and last-insert-id.

- The execution of a query is retried if some deadlock occurs.
- If a query is an "insert" one and there's an autoincrement field in the
table, then the value of the last inserted id is store in the "last-insert-id"
attribute in the database object.
- Added documentation at the Rebol and C level.