initial work, need better error handling

initial work, need better error handling (and remove the print stmt, doh) but since I saw #39, I wanted to get this out there since it's a similar improvement.

Instead of getting a layer's resource by searching everything, just use the resource url to grab the representation. This also cleans up the layer subclasses somewhat.

i'm actually using this on mapstory production without any issues.