Compile swagger v2

V2 is a pull-rebase with the changes that was noted in the review that that the protocol should not be hard coded in the html.