Handle copying assets from assets-only directories
Handle copying assets from assets-only directories

Fixes #39

Previously when Gatsby was copying assets in the post-build step, it
assumed that all assets were in the same directory as an html page as
page paths can be written programatically, to ensure assets are copied
to the right directory, they too need to follow however the page path
is modified.

This created a bug however when assets were placed in a directory
without a page as then the code couldn't find a page associated with the
assets.

This commit checks now if page is returned undefined and if it is,
copies the asset to /public to a directory with the same name e.g.
/pages/images/foo.jpg is copied to /public/images/foo.jpg.

kidaa/gatsby,eriknyk/gatsby,HaQadosch/gatsby,fk/gatsby,fabrictech/gatsby,mingaldrichgan/gatsby,mickeyreiss/gatsby,danielfarrell/gatsby,gesposito/gatsby,ChristopherBiscardi/gatsby,lanastasov/gatsby,mingaldrichgan/gatsby,danielfarrell/gatsby,gatsbyjs/gatsby,0x80/gatsby,ChristopherBiscardi/gatsby,mickeyreiss/gatsby,fk/gatsby,fabrictech/gatsby,Khaledgarbaya/gatsby,shaunstanislaus/gatsby,domenicosolazzo/gatsby,gatsbyjs/gatsby,okcoker/gatsby,chiedo/gatsby,danielfarrell/gatsby,okcoker/gatsby,brianjking/gatsby,chiedo/gatsby,rothfels/gatsby,Khaledgarbaya/gatsby,gatsbyjs/gatsby,alihalabyah/gatsby,rothfels/gatsby,Syncano/gatsby,aliswodeck/gatsby,fk/gatsby,MariusCC/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,bzero/gatsby,fabrictech/gatsby,0x80/gatsby,okcoker/gatsby,mingaldrichgan/gatsby,Khaledgarbaya/gatsby,0x80/gatsby,MoOx/gatsby,gesposito/gatsby,gatsbyjs/gatsby,ChristopherBiscardi/gatsby,mickeyreiss/gatsby,gatsbyjs/gatsby,chiedo/gatsby