Renamed huddoc.js to background.js to indicate its role
Moved files around so Ajax code is not duplicated (fixes #9)