Adds a libraries attr to directions.

This is so the map and directions elements can share the same API library load

Reviewer: @addyosmani