updated readme and projects
changed docu format
renamed cosm to xively
rewrote timeout functions to be more portable