now document view works basically
several bug fixes
Fix several bugs, now projects will be loaded before angular initialization and file in sidebar will be selected if path has been specified in parameters