changed some of the problems with the picam

fixed sleep issues, and some issues with the webinterface and the picam.