Made config available as singleton and update smtp delivery, fixed some bugs