battery-acpi: Restrict charge level to <= max level

Signed-off-by: Michael Buesch <m@bues.ch>
battery: Unify percentage handling

Signed-off-by: Michael Buesch <m@bues.ch>
Use daemon() for detaching

Signed-off-by: Michael Buesch <m@bues.ch>