When referring to this work, full bibliographic details including the author, title, awarding institution and date of the thesis must be given.My thanks, first and foremost, to my advisor James Cheney for his generous guidance, encouragement, and unyielding support. I have left every single one of our meetings happier and more confident than I entered it, even and especially when things had gone poorly. I would also like to thank Peter Buneman, Ian Stark, James McKinna, and Jan Stolarek for their interest and feedback. I would like to thank Torsten Grust and Sam Lindley for agreeing to be my examiners and their feedback, and Stephen Gilmore for chairing my viva.Thanks to my awesome office mates Karoliina, Fabian, Ricardo, and Rudi; to the Friday lunch crowd Brian,