Issue #40: Converting all #dependency properties to #states, based off of http://drupal.org/node/1595022 by dawehner.