Added missing img resources for x-editable
Added login check and redirect for admin, client and site_user, added login and logout url redirect to settings
Added 'access' to 'roles' table to allow different types of roles to access the admin (or client) restricted areas, ie you can add a new role that only has some permissions yet can still login to /admin - where before - you could only have 1 admin role with limited permissions.

Please note you need 'access' added to the `roles` table, varchar255, then you'r roles for admin need to have access=admin on the record

Also added switch for different redirections depending on role, admins goto /admins, clients or site users go back to the config setting, cookie or /