Added error message when trying to send a frame without connecting first.
Implemented transaction subroutines (closes #1).
Added subroutines transaction_begin(), transaction_commit(), transaction_abort().