Fix workflow selector in TUX

Refactored it into separate resource loader module and jQuery
plugin. Fixed the api to not return empty arrays but false or
object. Simplified and cleaned up the logic.

Bug: 45558
Change-Id: Ib0f874af7356b8affced73139dff9510c6c970f1