Pirate festival mixes local history, fun and adventure