Added config.js and cleaned up index.html

Added config.js with schema defined in json and script for initializing
DB and creating tables. Cleaned up index.html and rearranged folder
hierarchy.