cleaned things up a bit, made dev subdomain a configuration option