Invert posts and photo galleries association
Upload photos in editor
Upgrade rails
Fix json serialization