Went all rebel and moved basehandler to a file

Basehandler has it's own file now, also made some minor changes