Initial UI drop - only basic sensor support, no actuators.
Move the HTTP root for static content.

Also make sure we only call os.getcwd() once.
Fix walking over lists in state tree in event stream.

Also add misc comments.