Add some fixes to allow states to properly display on the android device.

+ Door_Item.pm    - door items have states 'open' and 'closed'
+ Generic_Item.pm - allow a one value state to display in the android device.
+ Security.pm     - motion devices have states 'motion' and 'still'.
I think I have to resubmit this change as I mixed up two branches.