Refactored code to use templates rather than DOM manipulation. Listen for event propagation on users table rather than register events on each button and row. Issue: #380