Use more object oriented way for console commands
Change Files Scan command to use OC\User\Manager
Cleanup and more style fixes
Use appinfo/register_command.php to add commands to the console command
Check all installed apps for console commands
Add copyright, remove starting blank line
Merge pull request #4684 from owncloud/improved-console

Use more object oriented way for console commands