Make PointerDetector a module

Change-Id: If78671b090c2621a385b81a80f960b877de4bab3