dependency fix
bug fixes, emit fixes

fixes to the way the frontend communicates. Now some events only emit to
the correct client socket. Added web.emit.client. Added lirc tab to
interface. Cleaned up web init function. Made clientside js app somewhat
independent of server settings, url etc. Needs more integration.