Added api namespace to rails. Created json api for courts.