Switch: Set switch_value default according to max_pwm of output

Previously the output was modulated with a very low duty cycle due to a
hard-coded default value of 1. Fixes #195.
Switch: Fix usage of std::string::compare
Merge pull request #196 from bgamari/edge

This fixes the brokenness in Switch since its merge with Button.
fixed small bug concerning startup_state in Switch init