Fixed some permissions (use CamelCase instead of underscores).
Fixed Ajax permissions (use CamelCase instead of underscores).
Sequence of images, files and video taken into account for listing.
Merge pull request #19 from drsdre/security_patches

Permission names and media sequence fix