Use lcd_clear when applicable
Fix lid bug

MCLR is connected to the lid sensor, so it can't be used.
Remember to reset flags
Use external switch for self test
Enable pull-up on RA3 pin

This should definitively fix the lid sensor malfunctioning
Disable analog functions first
Light up LED only when we finish self test.

Also, fix small bug.
Remove bogus attribute
Use \n in printf to move to the second half of the LCD
Update project to EAGLE 6.5