Fixed missing parameter in AGPhotoBrowserDataSource methods and optional/required directives.
Consistent code conventions and minor cleanup.