What system app handles the screenshots in Lollipop?
SystemUI handles the global screenshot.

SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java

SystemUI/src/com/android/systemui/screenshot/TakeScreenshotService.java