Add email lookup to customers endpoint, try at #4845

Add email lookup customer endpoint to api, uses same customer/<id> endpoint but allows for use of email address and looks up based on if an email or id was specified cc.

Closes #4845