[SwapCheck] add global swap check component, this will allow any func…
…tion to check if a temp swapfile should be created.

only basic atm, but in future there will be an option to set the size of swapfile, and how much free RAM is required.
for an example how to use see this commit oe-alliance/XMTV-Import@6f19a8a