Rename generic APPLICATION to MARGARINE_API.
Add wrapper script for margarine's API.