Some more uncrustify fixes
Use C for PluginInstance
Added NullSession and some tests for it
Added dependencies on core_tests

Should really rename the core_tests as Session depends on code outside core which is a bit weird.