build table with DOM, add sorting, OS cols, # col

1. Build table completely with DOM instead of setting innerHTML on each row.
2. Add number column.
3. Separate columns for each OS
4. Make table sortable

Code tested on current versions of Seamonkey, Firefox, Google Chrome. Does not work in IE.