Add support for custom path for received files

Also begin working on resources improvements.