Second day, first part (maybe last)

Added plenty of script files, splited template into smaller templates,
minor changes to layout. Works pretty fast and beautifully for now. :)