Create application API. Add documentation

This adds a consumable Node.js API so MailDev can be more easily used in other applications and testing. Also added are docs for this new API as well as docs for the existing REST API.