toward rendering table using polymer templates. Added simple styles for sort ordering. Source code refactored for better understanding and more polymer style