integrated ldap and email sending tasks.

integrated ldap and email sending tasks. Updated test for sending email while registering user.
Merge pull request #19 from mekanizumutc/master

integrated ldap and email sending tasks.
fixed a bug when executing dataAccess.js

When executing a query, the connection obj might have been closed by transaction.js due to error elsewhere such as connection timeout, so a check must be performed on connection.isConnected() before executing any query.
Merge pull request #22 from mekanizumutc/master

fixed a bug when executing dataAccess.js
Merge branch 'master' of github.com:cloudspokes/tc-api into cloudspokes-master

Conflicts:
	actions/contests.js
	test/accuracy/test.contests.js