Further changes to static_pages_spec. Added an extra utility method to h...

...elp avoid repeating code as much as possible