Fix some memory handling issues that I introduced.

The rugged_cb_payload struct that for the progress and notify callbacks
have to be allocated on the heap, not on the stack.
Use the 1.9.3+ rb_scan_args flag for options.
Some more words.
Add Repository#checkout_head.