Refactor skin scanning and skin folder indexing into SkinRegistry.cpp
This also adds tests.