[DO NOT MERGE YET] Lxc refactor

@terminalmage  this is your branch, rebased and conflictresolved + the review of mine + some adds i need.

/cc @mgwilliams @thatch45 @s0undt3ch