Code refactor for pictures

First part of push to test profile fields for pictures.
Needed to refactor the code to make it work with the playlist system.
Second part adds support for other media, as well as for a general Admin
account to manage the auth.