Moves the image rotator class to the library from app code.

The class is reused at least twice so it should be considered library code.
Rename the file to match namespace.
Moves the externs for the library from app code here.