Cleaned up and structured the code for better reading

Following general autconf tools structure have formatted and moved
files for better understanding and dependencies have been taken care of.
Minor: Edited readme

Instructions to install the dependencies and then deploy server using
launchd