Added Twitter button on dashboard. Refactor stats JSON view.