Working api for adding objective

As well as working ember demo.