[core] Main partly refactored.
[settings] Added App section. Added app size.
[core] Improved lifetime
Merge pull request #2 from Thar0l/Refactor

Refactored. Small fixes. Settings moved to main.