Added basic authentication. Adding works. Editing is broken. Will fix later