change handling of plugin entry deletion, jQuery, PHPDocs

 - When plugin/template entry in plugin:* or template:* are deleted, the plugin info is removed from the database
 - removed old plugin deletion stuff in table rendering, including 'devmode' config option.
 - javascript is jQuerified
 - improve some return values in helper.php
 - improve PHPDocs