Custom credentials per repository

This change should solve issues #55 and #54. Please let me know what you think.