Added generic API filter.

Also removed an unused JS file, and added documentation to the .xml
files.