Minor fiddling with markup

Add foundation js to each page.
Added temporary singleton for in memory db.