Common controls

Fully removed API Code Pack and API Code Pack Shell references and functionality. Also made plenty of optimisations and changes to other windows. Common class now includes new MessageWindow functions.