Default [Q] Custom ROM Development Help

I Need Help!!

I'm building a custom ROM for the Xperia Z and its based on CM11 Nightly's running Android 4.4.3 the help i need is with Battery saving. I want integrate saving features similar to The Samsung Galaxy S5. I already have a launcher that's pretty much a look alike and functions exactly the same as Samsung's Ultra Power Saving Mode launcher. my question/help i need is abit complex I want to have a button in either the notifications center and/or quick settings panel that will limit the CPU speed, set a specified default launcher and dissable un-needed features like bluetooth ect. is someone out there able to help me please? D: thanks guys