What I have done is create a default epub document the way I want it; default cover/title/acknowledgements/css/opf etc and saved that as "default.epub". You could have your code in the chapter page.
When you want to start a new book, simply open the "default.epub" file and "SaveAs" to a different name. Then when you want to start work on a new chapter page, just right click on your preformed page and select "Add Copy".
Hope that helps!