add some func

1 remove output hooks from struct aps_controller
2 add aps_output() method
3 add aps_cfg() method
format codes using google style