Fixed some misc problems

Most of them who caused the plug not to work :p
Changed to request, so much easier
Remove debugging
Added the possibility to use mongodb as cache
Really hated all the files