Major refactor to project structure plus ruby integration for locke-serv...

...er