Added buffer methods, local items deleting

Added methods for work with buffer
Added delete button handler and local functionality
Added base controller for better loving and debug
Removed bug from server.js with array duplicating