added deserialization of Date attributes for custom elements

Here's my first pass at adding Date deserialization support to `attrs.js`, as per #119 (tests included). Let me know what you think, and/or if I need to make any additional changes.