Have you looked into the Quote system custom API?:
You can use it for more than just storing/drawing/editing/deleting quotes!