The U.S. Navy is getting a 21st century makeover, with a new dress code that makes skirts optional for its more than 54,000 female sailors for the first time since women officially entered the service in 1908.