Move menu generation functionality into Menu Class and update CSS

This builds and completes work originally by daryn

Functionality has been tested with plugins implementing the following hooks:

EVENT_MENU_MAIN_FRONT
EVENT_MENU_MAIN
EVENT_MENU_MANAGE
EVENT_MENU_MANAGE_CONFIG
EVENT_MENU_ACCOUNT
EVENT_MENU_SUMMARY
EVENT_SUBMENU_SUMMARY

CSS changes have been tested on:

IE8
IE9
IE10
IE11
Firefox 31.0
Firefox 32.0
Chrome 37.0
Safari 7.0.6
Simplify configuration of last visited feature
Fix html validation and layout of system utility page
Fix #0015420: Invalid category check is not made
Tidy up db stats page. Merge test_email and email_queue functionality.

Remove link to test_email.php
Remove old packaging files

These haven't been updated since 1.1.0a5

If we do want to do packages, we should make it part of a build process.
Remove duplicate function call in bugnote_set_view_state.php
Webservice configuration docs should match existing document style
phpdoc: use integer instead of int in config_defaults_inc.php
Cache array should always store integer values not string values
Fixes history_log_event_special passing null to not null field
Avoid user_get_name call on empty string
use normal if construct instead of ternary operator
Trim summary/build string within Bug Api
email api should use config_get to retrieve path

This avoids accessing the $g_path global directly
Fix possible information disclosure within filter api

This fixes visibility of bugs within filter api for users who have
different roles in different projects.
move signal for EVENT_BUGNOTE_DELETED into core api

This ensure that the bugnote event is triggered whenever
a bugnote is deleted, including from SOAP api calls
Merge branch 'bugnotedel'
Fix #0007118 Attaching an oversized file raises wrong error message
Remove unused configuration option - email_set_category