Initial implementation of prepared statements, and doc updates