I just pushed this up. Might be of use to some!
dockBuilder.sh - https://github.com/loceee/OSXCasperScripts/tree/master/dockBuilder
Build a default Dock based on JSS information (eg. smart groups, location information, network segments).
Use it in your thin provisioning / policy based build process.
Huge thanks to Kyle Crawford for dockutil!