[optimization] TextureCacheBase: Slightly loosen the requirements for reusing mipmapped textures
[cleanup] [bugfix] TextureCacheBase: Cleanup and simplify mipmapping logic. Possibly fixes a bug or two.
[cleanup] TextureCache: Kill the autogen_mipmap parameter
[cleanup] Vastly clean up backend-specific sampler state logic.
[bugfix] DX9::TextureCache: Use max_lod instead of min_lod where necessary.
[bugfix] Properly decode lod_bias.
[bugfix] Make sure to specify the correct max lod level.
Added preliminary support for ES_LAUNCH (Wii Multi-boot games) by using HLE to hijack the OSBootDol function.

Metroid Prime Trilogy is working.  Wii Sports+Wii Sports Resort is not working.  Any games which can be played using the dol replacement trick should work here.

Suspect that the DOL's are meant to receive an argument list which has not been catered for in this code.  This probably also means that the Metroid Prime Trilogy games are locked in Veteran difficulty for the time-being.
Added argument detection and passing to the loaded dol.  This fixes the Wii Sports+Wii Sports Resort bundle pack.
Added an IOS check as games which use IOS older than IOS30 do not need to be HLE'd.  Added some stubs for Reset to Menu and SSBB's load from disc partition.  Fixed loading Fate of Atlantis from the Indiana Jones and the Staff of Kings game.
Added support for Reset (from menu).  Fixes Sam & Max.
Added some IOS version checks and code to clear memory before loading the dol.
Allow setting cpu engine and whatever bHLE_BS2 is from game ini.
Changed the HLE system to allow it to hook the beginning, the end or replace the entire function without changing the GC memory.  Fixes Kirby's Return to Dreamland.
Added a way to categorise the type of HLE function.  Currently, there are debug, floating point, memory and generic functions.
Added a HLE function for OSGetResetCode (Warm reset).  Fixes the CSI games.
Added a switch to disable all of the HLE functions if the idle skipping option is disabled.
Corrected a state bug where newly loaded dols did not have their patches applied.
Build fix
Fixed SSBB from starting at the mini-games screen.
Enable fastmem (aka. backpatch) support on Linux amd64 and OSX x64. Not tested on OSX, 8% performance increase on Linux amd64
Kill theme selection from GUI.
Kill themes in the config and load pngs from "theme" directory for now.