Fix coredump problem described at pull request #80.

  Add EventLoop::looping() for querying the state of EventLoop.
  Modify the EventLoopThread::startLoop() return value to EventLoop*&
After the tow code adjusting, we can fix the coredump of #80 gracefully.