#16 Added a "preview" variable which is true in preview

Simplified how "override baseUrl" works to use that new variable + tests