More fixes according to the review

1. Used wait_for_element_present instead of sleep()
2. Bound broadcasting system message js to gaia_apps.js
3. Renamed constants