Improvements to friends page, overall page loading

- Added created date to friendships
- Exposed the friendship id and created date in the friends API
- Refactored friends page to use JS and API
- Removed .vglobal()'s from everywhere, load once from document on-ready
in script
- Fixed two majorish bugs related to not using the correct delete method
from peewee