Refactored the way variables are logged and added cleanup sequences

Aparently, you need to remove the logging block IDs you registered from the copter if you plan to use it again without restarting it. Added functions for that. Also, Fixed reading of all variables and implemented support for stabilizer, accelerometer and gyroscope reading.