Added /authenticate endpoint and canEdit field

First 2/3 of #235