Added API reference doc directory and fixed a Gtk+ reference counting bug.