closes #214
refactor thumbnail setting and begin writing tests for it
more work on thumbnails setting tests
finish up thumbnails setting spec tests and add various model factories
move models and scripts to module