Make Cache\Scanner an emitter
add option to get the mountmanager from the filesystem
Split scanning logic from ajax file
Merge pull request #4131 from owncloud/scanner-split

Remove scanner logic from ajax file and place it in it's own class