Add a redirect when creation is canceled
Remove the Macro object in ShareMacro (not used)
Redirect to Home when document creation canceled
Check for empty document and space for creation
Filter document considering the 'view' rights
Fix a problem on non-initialization of properties