Removing unneeded constant. Adding support for…

 Removing unneeded constant. Adding support for more mime types and the PS web-app. Adding to code to only output some json table when the tables are not empty.