Implemented Profile API

- Basic API endpoint
- More advanced Origin check (POST + GET)
- API classes implemented in JS library