Minor fixes

 * added ./uploads/pending directory
 * added code to create uploaded_cunks db-table if missing
 * minor style fixes
 * removed lingering console.log's