Clean up a bunch of stuff, most initialization logic out of main, add memory_manager which will eventually reserve and allocate memory to different components, maybe automate dirty subsector tracking and cleaning.
Rename initialization function to fit convention, fix integer overflow in sensor_event_log init call.