Create inputbar directive
Move inputbar related events to inputbar directive
Move completeNick method to inputBar directive
Isolate the nick completion in the inputbar's scope