move attachment type logic into common service
Merge pull request #371 from just-boris/master

move attachment type logic into common service
use relative links on attachment view
closes #368
remove unnecessary redirect
Merge pull request #372 from just-boris/master

use relative links on attachment view
Fixed issue with missing slf4j implementation