refactoring delete card stuff out of api

this involves moving the route to the card app and moving the js
specific stuff to the board js lib.
moving last js functionality from api to boards