Introduce inherited themes

Don't need to duplicate all files from themes to themes. Just create a
manifest.php file in your theme with the inherit option and add the
files you want to overwrite from the inherited theme (see example in
/themes/test/).
Improve BMP loader - faster, cleaner