Code Changes (20130105-A)

1 - Code cleanup and optimization
2 - Used drupal_map_assoc where helpful to reduce code needed to
retrieve some select element values
3 - Applied timezone calculation where required
4 - Added selectable data sorting to email configuration form
5 - Updated test cases - more work needs to be done here