Add gallery ids to image modal markup, clean code, begin views integration.