Auth config writing

@louissobel 
One of the test cases is still failing (test deleting a file). Not sure if we should merge this or not before we hand it in, your call Louis.
Changes:
-config file containing passwords/default password separated from rsa key file
-password now stored encrypted with rsa