Implemented $.util.getDirectionality

By acting as an interface to ULS, the function allows move ULS specifics out of the *view widgets.

Change-Id: I987843e00c06e1c5d5b7b9c7b2f25d9801441017