added handlebar compiler and split code into server and client