Fixes to many things

Added fixes for broken password reset link. Added fix for panels. Added
fix for admin panel. Added fix for theme.