make live view size more responsive

- The screen size will be 1024x768, if there is enough space
  Otherwise 800x600 is used
- If a user selects a different size, it is saved in a cookie
  and restored when visiting the page again
- The user can delete the cookie by selecting the default res entry
provide livelog via EventSource

Reformat some code
Merge pull request #5 from asdil12/live_responsive

Make live view size more responsive