How to add/remove links on my account navigation?

How to add/remove links on my account navigation?

See, for example, how is the My Orders link added:

A post was split to a new topic: How to remove the “My Downloaded Products” link from the customer account menu?