Removed unwanted code and simplified config

Removed unwanted code from library. Dynamically include swift mailer library based on user email 
configuration.