Rearranged hooks in base module
Added hooks for joins and parts
Made base_quit hook better and added quit hook