rework path resolving

- FileManager is now work with app files as server path, not the real fs
paths
- tests for extract that include most possible file links
- support for basis.js 1.3 & 1.4 for now (lower versions are broken)