Removed unneeded files.
Implementing simple config system.
Added exit hooks for cleanup.

Moving to basic database.
Adding db support. Still debugging its initialisation and verification code, but the schema is done:

repository:(_id_,name)
group_rights:(_g_id,r_id_,right)
user_rights:(_u_id,r_id_,right)
group:(_g_id_,name)
user:(_u_id_,email)
group_member:(_g_id,u_id_)
access_rights:(_ac_id,ac_name_)