From todo: handle duplicate filenames and error pages
Added default User Agent and added a way to change it