Added more Thread methods

Threading now supports priorities, daemon threads and interrupts. Thread state transitions now match those of standard Java, in particular threads can no longer be re-run. Runtime class now exists to report on total and free memory. Unit testing class added to utils. System class provides interface to memory check methods and there is now an exit() method that will terminate an application.

Minor fixes to out-of-memory checks. Name mangling modified to support overloaded native fuctions (of interest to developers only). Exiting an application now stops the motors.

Posted by Paul Andrews 2012-10-16