Added /getpart and /getpath endpoint, modified MainHandler, bugfixes