Added API endpoint for adding a course to a specific bin.

Also refactored some code in preparation for adding bins to a specific place.
That's the next step.