This means, essentially, that one can write JavaScript window-manipulation scripts and run them with via shebang with "osascript". See here: https://github.com/dtinth/JXA-Cookbook
One can query an application's windows, then directly manipulate their position, size, and so forth in JavaScript.
I have some hacked-up stuff I use for my personal setup. I've found it works better for me than any of the other Mac OS X utilities for the purpose. Unfortunately I haven't extracted a common pattern for a general-purpose utility, but I can point people in the right direction if they want to roll-their-own.