Moved Config.js to common.
Added getPictures/gotPictures events.