Q-switched and Mode-locked Mid-IR Fiber Lasers