Restructured app.js file
Added getall method and /prototypes route to work for logged in user