added redirect on unauthorized and fixed some worker bugs
migrated data to CouchDb attachments
merged index.html + FileManager.coffee + Jonathan's commit