Delete Posts Added

- Moved general javascript code to a seperate file
- Added support to delete a post from the management console