This template is originally based on the template available in samnuutt’s page. I have modified it to my liking. Notice, that this is still a work-in-progress; some things may not be perfect.
Bugs: I can’t make Nomenclature to work on ShareLaTeX server; it needs a separate indexing compilation run. Also, this template has tens (or hundreds maybe) of ugly hacks added on top of samnuutt’s work.