Reorganize code. Implement some photosets methods.