Is it faster to build a sentry in-place or build it near the resupply and then haul it?
Solution 1:
This is going to depend on the map, how far the resupply cabinet is from a building area, where you want to deploy your sentry, and what sort of ammo supplies are near the desired deployment area.
If you know there is a full ammo pack, or a couple of a 100-metal ammo packs, near your desired location, you should probably just build it there and get resupplied without going back to spawn. You will fare better if you drop your dispenser before your sentry as well, and make sure to help it build faster while you wait for ammo to respawn... this will give you an extra ammo boost for upgrading your sentry. In general I think this is the faster option.
However, if you know of a good sentry position that has no ammo nearby (or only a small 41-metal item), and you won't have too far to run between the resupply cabinet and a buildable area, and that buildable area is pretty close to the place where you want your sentry, then this option can be faster. I'd say for most maps it isn't the better option. It does have one nice feature though: you can keep the sentry out of danger until the enemy uses their first ubercharges and avoid rebuilding the gun.
Above all keep in mind that it's almost always better for your team to build a level 3 teleporter and dispenser than it is to have a level 3 sentry. A level 1 sentry with player support is still pretty effective, and the healing of your dispenser and fast replacement of allied players is MUCH better than the extra damage you get from a level 3 sentry in almost all scenarios. Also, offensive teams almost always build an ubercharge or two during setup time, which they will often use to immediately clear out any sentries that are nearby (but will rarely use to target teleporters and dispensers).
Solution 2:
In setup time, the most important thing that you can do is to get teleporters up - assuming that this is a standard 12v12 or 16v16 match. The order that I seem to like doing now with the ability to move buildings:
1) Drop a teleporter entrance outside the gate.
2) Run to front lines, picking up at least 50 metal on the way. Drop an exit. If there's a nearby metal stash, grab that and drop a despenser.
3) Haul back quickly to spawn. Upgrade teleporters with spawn metal. Build up a sentry to level two.
4) Pick up sentry, teleport with it to front lines, and drop it. Finish upgrading sentry and despenser.
This order keeps a working gun from battle for about a minute, but this is ordinarily fine. You should have enough demos and ubers to keep the blue very near spawn during that time - especially if the teleporters are running.