This commit is in preparation for importing the Westermo code changes. Slowly refactoring the finit core into a more modularized unit to be a bit more maintainable. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>