WIP: Smarter deploys

Maybe this would work properly with the right server config, but it is currently giving path issues and I'm not entirely sure where the correct path to point to is.