Create how-to-write-an-api

First draft started. Up to Chapter 3.