added tests. moved isRTL function got Grid.js
more cleanup of ui-grid directive by removing reduntant functions