Adds windows_to_[direction] methods to APIs. Fixes #38.