Added /getpart endpoint, modified MainHandler, bugfixes