homedir relative for static content
Improved define-resource macro to pass the parameters
Turned page struct into clos object