Connected BEI front-end and back-end.

Backend now reports more information.
Massive refactoring on the frontend (should be "up-to-standard")
Changed to index.html to include basicEncounterInfoViewer.css & basicEncounterInfoViewer.js
Minor edit to commmon.js to edit HTML. The ID reported by BEI is patient ID, not encounter ID.