Bug fixes. Work for upcoming export feature started.

* Fixed a bug which resulted in Ajax requests not being cleared out of
the array after completion.

* Export feature work started. Doesn't work currently, next version will
contain basic export support.