Added ELSE state for messages with no subject
Refactored & Renamed various pile & bulk functions, move tagging AJAX calls into tags.js, fixed bulk action 'Delete'