Huge refactor to get Express & Jade working