Added functions to resize tabs when they are displayed. Added tabs.js
for all tab related logic. For all tabs except category, wait until a
tab is first activated to load the data from the DB table. The category
tab is the first one, so it gets loaded at startup.