$api implementation ready.
Usage: $api.get(apiEndpoint) or $api.post(apiEndpoint, data)
Merge remote-tracking branch 'origin/master'