Add support for freeing and resetting prepared statements.
Now the library starts to be really useful.