This fixes Task#19110 :Changing project deletes users
http://squish.ish.com.au/tasks/19110
The bug was caused by use of .html instead of .append in javascript
Reverted the changes in the javascript.
Users were lost in javascript beacuse no customers were associates with incoming tasks with
all new users.
Added a default customer to an incoming task from email with no users present in the db.
Now using array.size.zero? insted of array.length == 0
Cleaning up the code.
This commit includes the test cases for emails controller
Modified test cases. Removed all constants used for local variable assignment.
Merge pull request #487 from ari/viks-changing-projects-deletes-users-task#19110

Viks changing projects deletes users task#19110