Fixed typo
Added Path class to handle path operations
Refactoring upload handling

Decoupled file event listener from actual upload logic. The file event listener will now fire off events to the given EventBus. Listening on the EventBus is the UploadingEventListener which currently takes care of performing upload operations. This way, if I decide to build a UI, it can react with UI updates to these events.

I might further decouple the actual file events (currently inappropriately called UploadEvents) and have events that are fired off per logical entity, i.e. per file (nt:file), per directory (nt:folder), or dialog (dialog.xml). Uploading /foo/bar.txt would then result in a event for /foo (which might not be of type nt:folder) and an event for bar.txt. Just some thoughts, need to look into that.