sgallery.php - first step done.

sgallery runs, still long way to go - tpls and css.