Change into model gallery
Merge branch 'issue1027' of github.com:dataloft/airyo into issue1027

Conflicts:
	application/models/gallery_model.php
Fied bugs and added php methods and js function