upload handler: fix its behavior, acting now as a singleton
main, upload_handler: track occupied upload slots
upload manager: inherit BaseObject to be able to trigger events
upload handler: tiny refactory