No.1 for e8eafc12

Base-Commit & Subjects

  1. Centralize evnets with eventManager.
  2. Refactor header & footer, move the logic to js part.
  3. Modify indentation of 'if' clause...
  4. Prepare some infancy issus about COOKIES.
  5. Setup popup framework.
  6. Complete miniature of signup and login.
  7. Update develope branch.