created api to render json for tasks index and create actions

Signed-off-by: Cory Leistikow <cory.leistikow@gmail.com>