some work on adding the site conf. Add a basic state class

--HG--
branch : noink
fix missing param and missing method

--HG--
branch : noink
missing setup entries in test, duplicate user error was an array

--HG--
branch : noink