cgame: hud code refactored and mods for althud started