add cors headers even for error pages
Merge pull request #7 from chrisrhoden/cors

add cors headers even for error pages. great, thanks!
make public assets use relative urls
use common account representer for all child classes
move media urls to links as enclosures