Applying fixes and changes

Added suppor for error 404 with template
Added Kses
Removed phmagik
Fixed RMtemplate in order to recognize urls starting with //
Fixed users save