base back-end and front-end code

primarily merge laotu's code and the front page