How to make a basic LSL-based API

A best-practice guide on how to make an API script for your Second Life™ product. These are my 2 cents.