added Firebase:true in global hash
Created ChatCtrl functions
Separating repetitive code from views into partials