Refs #7642 - Create docker image and tag models

Use ```belongs_to :image, :foreign_key => "docker_image_id"``` and ```:class_name => "DockerImage"``` , and the same for tags, so you get the getters and setters for free instead of having to define them yourself.