Backend an IMAP client written in php for use with front-end's written in Javascript.