Refactor powered and use_power procs.
src not area.
Fix compile errors.
Fix more compile errors.
Prevent locking up of daemon.
Default return after 20 loops.
Refactor this proc too.
Merge pull request #791 from ESwordTheCat/7b#vbri1

Refactor powered, usage and use_power procs.