Added api module with resources definitions. Also added relevant urls