Fixed edit user dialog, now displays roles correctly and checks the correct checkboxes for the relevant roles. Also fixed the update user function which is now working properly. Relates to issue #48