This would actually be a pretty easy engineering problem.. The bowsprit would be a freely rotating entity. The mast comes up through the pivot point and the bowsprit is held down by a bar - like a 1x2 or metal pipe. To turn the bowsprit, you could have a tiller-like extension coming from the bowsprit into the cockpit or even a continuous rope on a ship's wheel if you wanted to get fancy.