Fix uploading files on Windows, implement queue

Added some code to rewrite paths to POSIX way from Windows way, loading
files as binary to fix uploading files itself. Started implementing
queue in monitor.py