Added simple user/permissions system using MySQL.