resultset management

major code arrangement for start handling different types of resultset
depending the depth of the resultset. smaller changes to the
databaseconnector and new enums for tellstick actions and other smaller
changes not mentioned.